package com.liuyjy.observer;

/**
 * @Author liuyjy
 * @Date 2025/2/19 12:55
 * @Description: TODO
 **/
public class User implements Observer {
    private final String name;

    public User(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + " received message: " + message);
    }
}
